home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / 3d Shooter / ThreeDShooter.jar / MyTask.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-11-03  |  930 b   |  25 lines

  1. class MyTask extends Thread implements Runnable {
  2.    // $FF: renamed from: if ThreeDCanvas
  3.    ThreeDCanvas field_0;
  4.    // $FF: renamed from: a int
  5.    int field_1;
  6.  
  7.    MyTask(ThreeDCanvas var1) {
  8.       this.field_0 = var1;
  9.       this.field_1 = 500;
  10.    }
  11.  
  12.    public void run() {
  13.       try {
  14.          for(; this.field_0.thread != null; Thread.sleep((long)this.field_1)) {
  15.             if (this.field_0.bGameStarted) {
  16.                this.field_0.randomMotion();
  17.             }
  18.          }
  19.       } catch (Exception var2) {
  20.          System.out.println("Controller:" + ((Throwable)var2).getMessage());
  21.       }
  22.  
  23.    }
  24. }
  25.